/**
 * 计算类型所占内存空间大小
*/


#include <stdio.h>

int main(void)
{
    printf("sizeof(int) %d\n", sizeof(int));
    printf("sizeof(char) %d\n", sizeof(char));
    printf("sizeof(double) %d\n", sizeof(double));
    printf("sizeof(float) %d\n", sizeof(float));
    printf("sizeof(short) %d\n", sizeof(short));
    printf("sizeof(long) %d\n", sizeof(long));

    return 0;
}